package com.ebelter.ty.ui.fragment.scale.register;

import android.app.Activity;
import android.content.Context;
import android.view.View;


import com.ebelter.ty.R;

import butterknife.OnClick;


/**
 * 生日页
 */

public class RolePager extends BasePager implements View.OnClickListener {



    public RolePager(Context context) {
        super(context);
    }

    @Override
    protected int loadLayoutById() {
        return R.layout.pager_role;
    }

    @Override
    public void initViews() {
        mRootView.findViewById(R.id.role_no_bt_tv).setOnClickListener(this);
        mRootView.findViewById(R.id.role_yes_bt_tv).setOnClickListener(this);


    }

    private void done(boolean isAthlete){
        Activity activity = getActivity();
//        if (activity instanceof GuestSelectWriteInfoActivity){
//            ((GuestSelectWriteInfoActivity)getActivity()).done(isAthlete);
//        }else if (activity instanceof AddUserInfoActivity){
//            ((AddUserInfoActivity)getActivity()).done(isAthlete);
//        }
    }


    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.role_no_bt_tv:
                done(false);
                break;
            case R.id.role_yes_bt_tv:
                // ((GuestSelectWriteInfoActivity)getActivity()).done(true);
                done(true);
                break;
        }
    }
}
